package br.com.sipsoft.svola.entidades;

import br.com.sipsoft.svola.persistence.HibernateUtils;

public class BaseEntity {

	protected final static HibernateUtils hibernateUtils = HibernateUtils.getInstancia();

	public void save() throws Exception{
		try {
			hibernateUtils.save(this);
			hibernateUtils.commitTransaction();
		} catch (Exception e) {
			hibernateUtils.rollbackTransaction();
			throw e;
		}
	}

	
}
